import http from "@/api/http"
const base = "/api/isv/";
export default {
  // 得到价格组数据
  async getPriceList(params) {
    return await http.post(`${base}ticketPurchasePC/queryTicketPrciceGroupListByProjectId`, params)
  },
  // 得到价格组详情数据
  async queryTicketPrciceGroupId(params) {
    return await http.post(`${base}ticketPurchasePC/queryTicketPrciceGroupId`, params)
  },
  //得到linkid
  async getLinkByTicketPrciceGroupId(params) {
    return await http.post(`${base}ticketPurchasePC/getLinkByTicketPrciceGroupId`, params)
  },
  // 上下架  
  async updateTicketPrciceGroupStatus(params) {
    return await http.post(`${base}ticketPurchasePC/updateTicketPrciceGroupStatus`, params)
  },
  // 复制价格组
  async copyTicketPrciceGroupByPrciceGroupId(params) {
    return await http.post(`${base}ticketPurchasePC/copyTicketPrciceGroupByPrciceGroupId`, params)
  },
  // 单订单限购数量
  async setOneTicketLimitNum(params) {
    return await http.post(`${base}ticketPurchasePC/setOneTicketLimitNum`, params)
  },
  // 门票售罄
  async soldOutPriceGroupInum(params) {
    return await http.post(`${base}ticketPurchasePC/soldOutPriceGroupInum`, params)
  },
  // 查询门票类型总价
  async queryTicketTypeTotalPriceByTicketTypeId(params) {
    return await http.post(`${base}ticketPurchasePC/queryTicketTypeTotalPriceByTicketTypeId`, params)
  },
  // 获取价格组信息
  async queryTicketInfoList(params) {
    return await http.get(`${base}ticketPurchaseMob/queryTicketInfoList`, params)
  },
}
